package com.zhangsun.springShiro.system.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * 资源类型
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum ResourceTypeEnum implements IEnum<String> {

    MENU("菜单"),
    ACTION("动作");

    private String name;

    ResourceTypeEnum(String name) {
        this.name = name;
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
